rem 设置兼容性为WinXPSP3
reg add "HKCU\Software\MicROSoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /f /v "%cd%\D2Loader.exe" /t REG_SZ /d "~ RunAsInvoker DisableNXShowUI WINXPSP3"
cls&copy /y d:\game\install\diablo2\hacks\codes\develop\D2Loader\Install\D2Loader.exe .\&D2Loader.exe -w -multiopen -mpqpath "d:\Diablo II D2SE\d2se\CORES\%1" "d:\Diablo II D2SE" -dllpath "d:\Diablo II D2SE" "d:\Diablo II D2SE\d2se\CORES\%1" -ver %1 %2 %3 %4 %5 %6 %7 %8 %9
reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%cd%\D2Loader.exe" /f

rem 一键获取绝对路径，构造参数调用D2Loader
rem @echo off
rem setlocal
rem   for %%d in (%~dp0.) do set Directory=%%~fd
rem   for %%d in (%~dp0..) do set ParentDirectory=%%~fd
rem start hight-d2\D2Loader -w  -multiopen -mpqpath %Directory%\10mpq -3dfx  -skiptobnet  -xp -depfix -plugin map\d2hackmap.dll 
rem endlocal